import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home'
import Invite from './views/Invite'
import Code from './views/Code'
import Sms from './views/Sms'
import Loading from './views/Loading'
import Select from './views/Select'
import Picker from './views/Picker'
import Drag from './views/Drag'
import Table from './views/Table'
import Map from './views/Map'

Vue.use(Router)

export default new Router({
  mode: 'history',
  /*base: process.env.NODE_ENV === 'production'
    ? '/aos-admin'
    : process.env.BASE_URL,*/
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/layer',
      name: 'layer',
      component: () => import(/* webpackChunkName: "layer" */ './views/Layer.vue')
    },
    {
      path: '/invite',
      name: 'invite',
      component: Invite
    },
    {
      path: '/code',
      name: 'code',
      component: Code
    },
    {
      path: '/sms',
      name: 'sms',
      component: Sms
    },
    {
      path: '/loading',
      name: 'loading',
      component: Loading
    },
    {
      path: '/select',
      name: 'select',
      component: Select
    },
    {
      path: '/picker',
      name: 'picker',
      component: Picker
    },
    {
      path: '/drag',
      name: 'drag',
      component: Drag
    },
    {
      path: '/table',
      name: 'table',
      component: Table
    },
    {
      path: '/map',
      name: 'map',
      component: Map
    },
  ]
})
